﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001431 RID: 5169
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TrainVisitorBehaviorFinishScRsp : IMessage<TrainVisitorBehaviorFinishScRsp>, IMessage, IEquatable<TrainVisitorBehaviorFinishScRsp>, IDeepCloneable<TrainVisitorBehaviorFinishScRsp>, IBufferMessage
	{
		// Token: 0x17004126 RID: 16678
		// (get) Token: 0x0600E769 RID: 59241 RVA: 0x0026A8FF File Offset: 0x00268AFF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TrainVisitorBehaviorFinishScRsp> Parser
		{
			get
			{
				return TrainVisitorBehaviorFinishScRsp._parser;
			}
		}

		// Token: 0x17004127 RID: 16679
		// (get) Token: 0x0600E76A RID: 59242 RVA: 0x0026A906 File Offset: 0x00268B06
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TrainVisitorBehaviorFinishScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17004128 RID: 16680
		// (get) Token: 0x0600E76B RID: 59243 RVA: 0x0026A918 File Offset: 0x00268B18
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TrainVisitorBehaviorFinishScRsp.Descriptor;
			}
		}

		// Token: 0x0600E76C RID: 59244 RVA: 0x0026A91F File Offset: 0x00268B1F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainVisitorBehaviorFinishScRsp()
		{
		}

		// Token: 0x0600E76D RID: 59245 RVA: 0x0026A928 File Offset: 0x00268B28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainVisitorBehaviorFinishScRsp(TrainVisitorBehaviorFinishScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.visitorId_ = other.visitorId_;
			this.reward_ = ((other.reward_ != null) ? other.reward_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600E76E RID: 59246 RVA: 0x0026A980 File Offset: 0x00268B80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainVisitorBehaviorFinishScRsp Clone()
		{
			return new TrainVisitorBehaviorFinishScRsp(this);
		}

		// Token: 0x17004129 RID: 16681
		// (get) Token: 0x0600E76F RID: 59247 RVA: 0x0026A988 File Offset: 0x00268B88
		// (set) Token: 0x0600E770 RID: 59248 RVA: 0x0026A990 File Offset: 0x00268B90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x1700412A RID: 16682
		// (get) Token: 0x0600E771 RID: 59249 RVA: 0x0026A999 File Offset: 0x00268B99
		// (set) Token: 0x0600E772 RID: 59250 RVA: 0x0026A9A1 File Offset: 0x00268BA1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint VisitorId
		{
			get
			{
				return this.visitorId_;
			}
			set
			{
				this.visitorId_ = value;
			}
		}

		// Token: 0x1700412B RID: 16683
		// (get) Token: 0x0600E773 RID: 59251 RVA: 0x0026A9AA File Offset: 0x00268BAA
		// (set) Token: 0x0600E774 RID: 59252 RVA: 0x0026A9B2 File Offset: 0x00268BB2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Reward
		{
			get
			{
				return this.reward_;
			}
			set
			{
				this.reward_ = value;
			}
		}

		// Token: 0x0600E775 RID: 59253 RVA: 0x0026A9BB File Offset: 0x00268BBB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TrainVisitorBehaviorFinishScRsp);
		}

		// Token: 0x0600E776 RID: 59254 RVA: 0x0026A9CC File Offset: 0x00268BCC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TrainVisitorBehaviorFinishScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.VisitorId == other.VisitorId && object.Equals(this.Reward, other.Reward) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600E777 RID: 59255 RVA: 0x0026AA2C File Offset: 0x00268C2C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.VisitorId != 0U)
			{
				num ^= this.VisitorId.GetHashCode();
			}
			if (this.reward_ != null)
			{
				num ^= this.Reward.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600E778 RID: 59256 RVA: 0x0026AA9A File Offset: 0x00268C9A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600E779 RID: 59257 RVA: 0x0026AAA2 File Offset: 0x00268CA2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600E77A RID: 59258 RVA: 0x0026AAAC File Offset: 0x00268CAC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.VisitorId != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.VisitorId);
			}
			if (this.reward_ != null)
			{
				output.WriteRawTag(42);
				output.WriteMessage(this.Reward);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600E77B RID: 59259 RVA: 0x0026AB24 File Offset: 0x00268D24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.VisitorId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.VisitorId);
			}
			if (this.reward_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Reward);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600E77C RID: 59260 RVA: 0x0026AB94 File Offset: 0x00268D94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TrainVisitorBehaviorFinishScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.VisitorId != 0U)
			{
				this.VisitorId = other.VisitorId;
			}
			if (other.reward_ != null)
			{
				if (this.reward_ == null)
				{
					this.Reward = new ItemList();
				}
				this.Reward.MergeFrom(other.Reward);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600E77D RID: 59261 RVA: 0x0026AC10 File Offset: 0x00268E10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600E77E RID: 59262 RVA: 0x0026AC1C File Offset: 0x00268E1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 42U)
					{
						if (num != 96U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.Retcode = input.ReadUInt32();
						}
					}
					else
					{
						if (this.reward_ == null)
						{
							this.Reward = new ItemList();
						}
						input.ReadMessage(this.Reward);
					}
				}
				else
				{
					this.VisitorId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005B7D RID: 23421
		private static readonly MessageParser<TrainVisitorBehaviorFinishScRsp> _parser = new MessageParser<TrainVisitorBehaviorFinishScRsp>(() => new TrainVisitorBehaviorFinishScRsp());

		// Token: 0x04005B7E RID: 23422
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005B7F RID: 23423
		public const int RetcodeFieldNumber = 12;

		// Token: 0x04005B80 RID: 23424
		private uint retcode_;

		// Token: 0x04005B81 RID: 23425
		public const int VisitorIdFieldNumber = 2;

		// Token: 0x04005B82 RID: 23426
		private uint visitorId_;

		// Token: 0x04005B83 RID: 23427
		public const int RewardFieldNumber = 5;

		// Token: 0x04005B84 RID: 23428
		private ItemList reward_;
	}
}
